Codeshare List of user-contributed code snippets for dotCMS Java CMS.

Author: "Nathan I. Keiter"

Quartz Errors

Author: dotCMS |

If you are seeing errors like this after an upgrade, it means that quartz has serialized an object to the database in its job store that has changed between...

Custom Field: Linking to different Content

Author: Daniel Patterson |

A custom field that pops a browser and allows you to select and style a link.

Combine multiple structure sources into the same content pull

Author: Jonathan Laughlin |

We have multiple news outlets on campus that ended up being created in different structures. When we wanted to syndicate these news sources onto one page...

One liner for generating OSGi fragment export

Author: dotCMS |

When developing an OSGI plugin, you often (always) need to generate an OSGi fragment which takes the place of manually having to change the osgi-exports...

Internationalized URL Title code

Author: Kivi Shapiro |

The default url-title.vtl is ASCII-only: any characters that are not letters of the English alphabet (or a digit or a hyphen) are discarded.

Convert Velocity request parameters to JSON

Author: Nathan I. Keiter |

Update to my previous submission. I added an if block so it does not break if there are no request parameters.

form add new feature

Author: shimanan |

## incoming form structure one of fieldName contain word email, will send message, default false;

custom field couple with program

Author: shimanan |

This code will pull a list of content into a custom field and create a select box for each result.

Mobile Detection and Redirection part 2

Author: dotCMS |

Simple mobile detection and redirection in dotCMS

Sample Google Calendar API fetch

Author: Mark Pitely |

A working copy of a JSON fetch from the Google Calendar API.